PerlEZ question
am 29.08.2009 14:54:27 von Claus Kick
--===============1392703271==
Content-Type: multipart/alternative; boundary=0016365ee9100335860472474db5
--0016365ee9100335860472474db5
Content-Type: text/plain; charset=ISO-8859-1
Hello everyone,
Just for fun, I am implementing a Smalltalk->Perl bridge using ActiveState
Perl (this is on windows), by using PerlEz.dll.
So far, I can load the library and create an interpreter, but then I am a
bit lost, when it comes to actually calling a perl script.
I receive error 5 for my PerlEzCall1, which means that the function call
caused an exception
http://docs.activestate.com/activeperl/5.8/Components/Window s/PerlEz.html
says for PerlEzCall1 to pass a pointer name of the function to call as
second parameter.
But I pass the filename (I assume script name) as part of the
PerlEzCreateOpt already - what do I need to pass here?
I would be very greatful for some help.
--0016365ee9100335860472474db5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hello everyone,
Just for fun, I am implementing a Smalltalk->Perl=
bridge using ActiveState Perl (this is on windows), by using PerlEz.dll.
r>
So far, I can load the library and create an interpreter, but then I =
am a bit lost, when it comes to actually calling a perl script.
I receive error 5 for my PerlEzCall1, which means that the function=20
call caused an exception
veperl/5.8/Components/Windows/PerlEz.html">http://docs.activ estate.com/acti=
veperl/5.8/Components/Windows/PerlEz.html
says for
rlezcall1">PerlEzCall1 to pass a pointer name of the function to call as se=
cond parameter.
But I pass the filename (I assume script name) as part of the PerlEzCre=
ateOpt already - what do I need to pass here?
I would be ver=
y greatful for some help.
--0016365ee9100335860472474db5--
--===============1392703271==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============1392703271==--
RE: PerlEZ question
am 31.08.2009 22:55:37 von Jan Dubois
This is a multipart message in MIME format.
--===============1108517955==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0312_01CA2A42.B80628E0"
Content-Language: en-us
This is a multipart message in MIME format.
------=_NextPart_000_0312_01CA2A42.B80628E0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
The script you passed to PerlEzCreate() should already have been executed by the tim PerlEzCreate() returns. But the interpreter
still hangs around at this point (and END blocks have not yet been executed). So you can call arbitrary functions, or evaluate
further Perl code before you destgroy the interpreter.
In general I prefer embedding Perl using its native embedding interface instead of using PerlEz, assuming you can write your
embedding code in C/C++:
http://docs.activestate.com/activeperl/5.10/lib/pods/perlemb ed.html
It is more work though, so for simple requirements PerlEz may be simpler to get working.
Cheers,
-Jan
From: activeperl-bounces@listserv.ActiveState.com [mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of Claus Kick
Sent: Saturday, August 29, 2009 5:54 AM
To: activeperl@listserv.ActiveState.com
Subject: PerlEZ question
Hello everyone,
Just for fun, I am implementing a Smalltalk->Perl bridge using ActiveState Perl (this is on windows), by using PerlEz.dll.
So far, I can load the library and create an interpreter, but then I am a bit lost, when it comes to actually calling a perl script.
I receive error 5 for my PerlEzCall1, which means that the function call caused an exception
http://docs.activestate.com/activeperl/5.8/Components/Window s/PerlEz.html
says for PerlEzCall1 to pass a pointer name of the function to call as second parameter.
But I pass the filename (I assume script name) as part of the PerlEzCreateOpt already - what do I need to pass here?
I would be very greatful for some help.
------=_NextPart_000_0312_01CA2A42.B80628E0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
(filtered medium)">
vlink=3Dpurple>
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>The script you passed to PerlEzCreate() should already have been =
executed by the tim PerlEzCreate() returns. But the interpreter still =
hangs around at this point (and END blocks have not yet been =
executed). So you can call arbitrary functions, or evaluate =
further Perl code before you destgroy the =
interpreter.
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>In general I prefer embedding Perl using its native embedding =
interface instead of using PerlEz, assuming you can write your embedding =
code in C/C++:
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>
href=3D"http://docs.activestate.com/activeperl/5.10/lib/pods /perlembed.ht=
ml">http://docs.activestate.com/activeperl/5.10/lib/pods/per lembed.html=
a>
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>It is more work though, so for simple requirements PerlEz may be =
simpler to get working.
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>Cheers,
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>-Jan
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif" ;color:#1F497=
D'>
style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in =
4.0pt'>
1.0pt;padding:3.0pt 0in 0in 0in'>
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"' >From:=
=
activeperl-bounces@listserv.ActiveState.com =
[mailto:activeperl-bounces@listserv.ActiveState.com] On Behalf Of =
Claus Kick
Sent: Saturday, August 29, 2009 5:54 =
AM
To: activeperl@listserv.ActiveState.com
Subject: =
PerlEZ question